package com.doremi.service.play_songs;

import android.content.Context;
import android.content.Intent;

public class PlaySongsServiceAcces {
	/*
	 * se encarga de levantar el servicio de reproduccion
	 */
	public static void playService(Context context) {
		TrackQueque trackQueque = TrackQueque.instance();

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._PLAY);

		context.startService(serviceIntent);

	}

	/*
	 * se encarga de avisar al servicio que se pausa la reproduccion
	 */
	public static void pauseService(Context context) {

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._PAUSE);
		context.startService(serviceIntent);

	}

	public static void fowardService(Context context) {

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._FOWARD);
		context.startService(serviceIntent);

	}

	public static void backwardService(Context context) {

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._BACKWARD);
		context.startService(serviceIntent);

	}

	public static void nextService(Context context) {

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._NEXT);
		context.startService(serviceIntent);

	}

	public static void previousService(Context context) {

		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._PREVIOUS);
		context.startService(serviceIntent);

	}
	
	public static void addSongService(Context context) {

		
		Intent serviceIntent = new Intent(context, PlaySongsService.class);
		serviceIntent.putExtra("order", PlaySongsService._ADD_SONG);
		context.startService(serviceIntent);

	}

}
